/*
* create by lixy 20150628
* Just for DMap(tuteng) Project
* copyright@ 2015
*/
"use strict";

!function(a) {
	a.app.service('teamResourceService', ['ajaxService', function (ajaxService) {
        
        this.importTeamResource = function (params, successFunction, errorFunction) {       
            ajaxService.AjaxGetWithData(params, "./api/team_resource/getTeamReport", successFunction, errorFunction);           
        };
    
        this.importTeamPieResource = function (params, successFunction, errorFunction) {       
            ajaxService.AjaxGetWithData(params, "./api/team_resource/getTeamPieReport", successFunction, errorFunction);           
        };
        // unused
        this.logout = function (successFunction, errorFunction) {
            ajaxService.AjaxGet("/api/main/Logout", successFunction, errorFunction);
        };
        
    }]);
}(this);
